﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace StyleTest.Controllers
{
    public class HomeController : Controller
    {
        //
        // GET: /Home/

        public ActionResult Index()
        {
            //string a = RedisHelper.Get<string>("user_wang");
            var demo = new demo();
            demo.id = 233;
            demo.name = "飞阳";
            //RedisHelper.Set<demo>("demo", demo, DateTime.Now.AddHours(5));
            var demo1 = RedisHelper.Get<demo>("234");
            return View();
        }

        public ActionResult Fight()
        {
            return View();
        }
        public ActionResult Chat()
        {
            return View();
        }
    }

    public class demo
    {
        public int id { get; set; }
        public string name { get; set; }
    }
}
